package com.sfddata.musicpillow.user.vo;

import java.text.ParseException;
import java.text.SimpleDateFormat;

public class test {

    public static void main(String[] args) throws ParseException {

        SimpleDateFormat format = new SimpleDateFormat("HH:mm:ss");
        long bedTimeL = format.parse("22:11:00").getTime();
        long awakeTimeL = format.parse("07:11:00").getTime();
        long zero = format.parse("00:00:00").getTime();
        long twoFour = format.parse("24:00:00").getTime();
        long onBedTimeL = awakeTimeL - bedTimeL;
        long onBedTimeL2 = (twoFour - bedTimeL)+(awakeTimeL - zero);
        System.out.println(onBedTimeL2/60/60/1000);
    }
}
